window.onload = function(){
    //注册盒子和按钮
    let gotoRegister = document.getElementById("gotoRegister");
    let registerbox = document.querySelector(".register");
 
    //登录盒子和按钮 
    let gotoLogin = document.getElementById("gotoLogin");
    let loginbox = document.querySelector(".login");
   
    


    // 登录切换注册
    gotoRegister.addEventListener("click",function(){
        loginbox.style.display = "none"
        registerbox.style.display = "block"
    })


    //注册切换登录  
    gotoLogin.addEventListener("click",function(){
        registerbox.style.display = "none"
        loginbox.style.display = "block"
    })
}